package com.fzg.common.demo.methodNodesTest;

import cn.hutool.core.date.LocalDateTimeUtil;

import java.time.LocalDateTime;

/**
 * create by fzg
 * 2022/12/26 15:44
 */


public class MethodNodes {

    public static void main(String[] args) {
        System.out.println(test(LocalDateTime.now()));
    }

    /**
     * @name 方法名：test
     * @description todo: 测试：LocalDateTime转string
     *
     * @param  localDateTime 参数
     * @return String
     * @date 2022/12/26 15:48
     * @author fzg
     **/
    public static String test(LocalDateTime localDateTime){
        return LocalDateTimeUtil.format(localDateTime,"yyyy-MM-dd HH:mm:ss");
    }

}
